<?php

namespace App\Http\Controllers\Wap;

use App\Model\BannerAd;
use App\Model\SiteEntrance;
use App\Model\Switched;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Model\Member;
use EasyWeChat\Foundation\Application;

class IndexController extends Controller
{
//    public function __construct(Request $request){
//        $this->request = $request;
//        $this->openid = session('wechat_user')['id'];
//        if (!empty($this->openid)) {
//            $this->memberId = Member::where('openid',$this->openid)->pluck('id');
//        }
//    }

    /**
     * 首页
     * czs
     */
    public function index(Application $app)
    {
        $js = $app->js;
        return view('wap.index.index')->with('js',$js);
    }
   
}
